/**************************************/
/********** TOOLBAR FUNCTIONS *********/

function changeBaseMap(type){
	_g.map.removeLayer(_g.map.getLayer(_g.currentBaseMap));
	if(type == "street"){
		var basemap = new esri.layers.ArcGISTiledMapServiceLayer(_g.streeturl, {id:"street"});
		_g.currentBaseMap = "street";
	} else if(type == "sat") {
		var basemap = new esri.layers.ArcGISTiledMapServiceLayer(_g.saturl, {id:"sat"});
		_g.currentBaseMap = "sat";
	} else {
		var basemap = new esri.layers.ArcGISTiledMapServiceLayer(_g.topourl, {id:"topo"});
		_g.currentBaseMap = "topo";
	}
	_g.map.addLayer(basemap);	
}

function toggleToolsLayers(){
	
}